package org.insist.best.codeGenerator.dao;

import org.insist.best.codeGenerator.core.DbConfig;
import org.insist.best.codeGenerator.core.DbType;
import org.springframework.stereotype.Component;


@Component
public class DataBaseInfoDaoFactory {


    public static DataBaseInfoDao getDataBaseDao(DbConfig dbConfig) {
        if (DbType.MYSQL == dbConfig.getDbType()) {
            return new MysqlDao(dbConfig);
        }
        return null;
    }
}
